package main

import (
	"fmt"
)

type Result struct {
	Succ bool
	Info string
}

func Get(params []string) interface{} {
	r := new(Result)
	r.Succ = true
	r.Info = "get "
	for i := 0; i < len(params); i++ {
		fmt.Println("params: ", len(params[i]))
		r.Info = r.Info + string(params[i]) + " "
	}
	fmt.Println("r.Info-len: ", len(r.Info))
	return r
}

func Add(params []string) interface{} {
	r := new(Result)
	r.Succ = true
	r.Info = "add "
	for i := 0; i < len(params); i++ {
		r.Info = r.Info + params[i] + " "
	}
	return r
}
